#pragma once
#include <iostream>
#include <string>

#define SUCESS  1
#define WARNING 2
#define ERRNO 3
#define FATAL 4

enum{SOCKET_ERRON = 1 , BIND_ERRNO = 2 , LISTEN_ERRON = 3, WRITE_ERRON = 4,CONNECT_ERRON};

void logmessage(const std::string  level, pid_t  pid, const std::string message)
{
    //[][][]
    std::cout << "[" << level<< "]" << "[" << pid << "]" << "[" << message << "]" << std::endl;
}